package com.tekj.cxqcb.view.Module.adapter;

import android.support.annotation.Nullable;

import com.amap.api.services.core.PoiItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tekj.cxqcb.R;

import java.util.List;

public class PoiListAdapter extends BaseQuickAdapter<PoiItem, BaseViewHolder> {

    public PoiListAdapter(@Nullable List<PoiItem> data) {
        super(R.layout.item_poilist, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PoiItem item) {
        helper.setText(R.id.tv_name, item.getTitle());
        helper.setText(R.id.tv_address, item.getSnippet());

    }
}
